package string;
/**
 * Sring trim()
 * 去除字符串两边的空白字符
 */
public class TrimDemo {
    public static void main(String[] args) {
        String a = "      hello,world              ";
        String b = a.trim();
        String c = a.toUpperCase().trim();
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }

}
